package com.member.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.member.shop.domain.SysBizActivityEnroll;
import com.member.shop.dto.OverviewDto;

import java.math.BigDecimal;
import java.util.List;

/**
 * 活动报名Mapper接口
 *
 * @author lixinchen
 * @date 2024-01-09
 */
public interface SysBizActivityEnrollMapper extends BaseMapper<SysBizActivityEnroll> {
    /**
     * 查询活动报名
     *
     * @param id 活动报名主键
     * @return 活动报名
     */
    public SysBizActivityEnroll selectSysBizActivityEnrollById(Long id);

    /**
     * 查询活动报名列表
     *
     * @param sysBizActivityEnroll 活动报名
     * @return 活动报名集合
     */
    public List<SysBizActivityEnroll> selectSysBizActivityEnrollList(SysBizActivityEnroll sysBizActivityEnroll);

    /**
     * 新增活动报名
     *
     * @param sysBizActivityEnroll 活动报名
     * @return 结果
     */
    public int insertSysBizActivityEnroll(SysBizActivityEnroll sysBizActivityEnroll);

    /**
     * 修改活动报名
     *
     * @param sysBizActivityEnroll 活动报名
     * @return 结果
     */
    public int updateSysBizActivityEnroll(SysBizActivityEnroll sysBizActivityEnroll);

    /**
     * 删除活动报名
     *
     * @param id 活动报名主键
     * @return 结果
     */
    public int deleteSysBizActivityEnrollById(Long id);

    /**
     * 批量删除活动报名
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysBizActivityEnrollByIds(Long[] ids);

    //活动订单总数
    Long todayOrderCount(OverviewDto overviewDto);

    //活动订单总金额
    BigDecimal PlatformTotalOrderAmount(OverviewDto overviewDto);

    /**
     * 获取活动报名总金额
     */
    BigDecimal paymentAmount(SysBizActivityEnroll sysBizActivityEnroll);
}
